<!--
 * @Description: 鼠标提示框
 * @Author: Sun
 * @Date: 2019-07-01 20:05:50
 * @LastEditors: Sun
 * @LastEditTime: 2019-07-01 20:35:11
 -->
<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <title>鼠标提示框</title>
</head>

<body>
  <input id="div2" type="checkobx" onmouseover="over()" onmouseout="out()">
  <div class="div" id="div1">鼠标提示框</div>
  <style>
    .div {
      width: 260px;
      height: 200px;
      background: #f1f1f1;
      display: none;
    }
  </style>
  <script>
    function over() {
      let dv = document.getElementById("div2")
      dv.style.width = "300px";
      dv.style.height = "300px";
      dv.style.background = "green";

    }

    function out() {
      let dv = document.getElementById("div2")
      dv.style.width = "200px";
      dv.style.height = "200px";
      dv.style.background = "#f1f1f1";

    }
  </script>

</body>

</html>